flutter check type of object

65

print(myvar is Person);

Type type = myvar.runtimeType;
print(myvar == Person));

Comments

Submit
0 Comments